import axios from '../../utils/request'

// 基础列表
export const GetquestionsData = params => {
  return axios({
    method: 'GET',
    url: '/questions',
    params
  })
}
// 加入精选

export const siftaddData = data => {
  return axios({
    method: 'PATCH',
    url: `/questions/choice/${data.id}/1`
  })
}
// 数据预览
export const yulan = params => {
  return axios({
    method: 'GET',
    url: `/questions/${params}`
  })
}

// 删除
export const delData = params => {
  return axios({
    method: 'DELETE',
    url: `/questions/${params}`
  })
}
